//
//  Const.swift
//  FastV
//
//  Created by DC on 2024/6/24.
//

import Foundation
import UIKit


// MARK: -- 常用屏幕尺寸参数
/// 是否为刘海屏
var kIsBangsScreen: Bool {
    if #available(iOS 11.0, *) {
        let window  = UIApplication.shared.keyWindow ?? UIApplication.shared.windows.filter({ $0.isKeyWindow }).last!
        return window.safeAreaInsets.bottom > 0
    } else {
        return false
    }
}
//颜色值
let colors = ["FDFD8F","D4D5CF","FFD8D8"]

/// 底部安全区域
var kSafeBottomHeight: CGFloat = kIsBangsScreen ? 34.0 : 0
/// 头部部安全区域
var kSafeTopHeight: CGFloat = kIsBangsScreen ? 44.0 : 20
let kScreenBounds =  UIScreen.main.bounds
let kScreenWidth =  kScreenBounds.width
let kScreenHeight = kScreenBounds.height
let kWidthScale =  kScreenWidth / 375.0
let kHightScale = kScreenHeight / 667.0
